<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta name="keywords" content="test" />
	<meta name="description" content="test" />
	<!-- 网页标签标题 -->
	<title>test</title>
	<link rel="shortcut icon" href="/img/docsite.ico"/>
	<link rel="stylesheet" href="/build/documentation.css" />
</head>
<body>
	<div id="root"><div class="documentation-page" data-reactroot=""><header class="header-container header-container-normal"><div class="header-body"><a href="/en-us/index.html"><img class="logo" src="/img/txlcn.png"/></a><div class="search search-normal"><span class="icon-search"></span></div><span class="language-switch language-switch-normal">中</span><div class="header-menu"><img class="header-menu-toggle" src="/img/system/menu_gray.png"/><ul><li class="menu-item menu-item-normal"><a href="/en-us/index.html" target="_self">Home</a></li><li class="menu-item menu-item-normal"><a href="https://bbs.txlcn.org/viewtopic.php?id=42" target="_self">News</a></li><li class="menu-item menu-item-normal"><a href="https://bbs.txlcn.org/" target="_self">Forum</a></li><li class="menu-item menu-item-normal"><a href="/en-us/docs/preface.html" target="_self">Docs</a></li><li class="menu-item menu-item-normal"><a href="https://github.com/codingapi/tx-lcn/releases" target="_blank">Download</a></li><li class="menu-item menu-item-normal"><a href="/en-us/sponsor/index.html" target="_self">Sponsor</a></li></ul></div></div></header><div class="bar"><div class="bar-body"><img src="/img/system/docs.png" class="front-img"/><span>Documents</span><img src="/img/system/docs.png" class="back-img"/></div></div><section class="content-section"><div class="sidemenu"><div class="sidemenu-toggle"><img src="https://img.alicdn.com/tfs/TB1E6apXHGYBuNjy0FoXXciBFXa-200-200.png"/></div><ul><li class="menu-item menu-item-level-1"><span>User Guide</span><ul><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/preface.html" target="_self">Preface</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/background.html" target="_self">Background</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/start.html" target="_self">Quick Start</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/dependencies.html" target="_self">Dependencies</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><span>Demos<img style="transform:rotate(-90deg)" class="menu-toggle" src="/img/system/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/demo/env.html" target="_self">DTX Demo</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/demo/dubbo.html" target="_self">Dubbo of TC</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/demo/springcloud.html" target="_self">Springcloud of TC</a></li></ul></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><span>In-depth TXLCN<img style="transform:rotate(-90deg)" class="menu-toggle" src="/img/system/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/principle/control.html" target="_self">Explain</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/principle/lcn.html" target="_self">LCN Transaction Mode</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/principle/tcc.html" target="_self">TCC Transaction Mode</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/principle/txc.html" target="_self">TXC Transaction Mode</a></li></ul></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><span>Settings<img style="transform:rotate(-90deg)" class="menu-toggle" src="/img/system/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/setting/client.html" target="_self">TC Settigns</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/setting/manager.html" target="_self">TM Settings</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/setting/distributed.html" target="_self">LoadBalance and TM Cluster</a></li></ul></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><span>Extensions<img style="transform:rotate(-90deg)" class="menu-toggle" src="/img/system/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/expansion/transaction.html" target="_self">Transaction Mode</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/expansion/message.html" target="_self">TXMSG&#x27;s Protocol</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/expansion/rpc.html" target="_self">TXMSG</a></li></ul></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/communication.html" target="_self">Command of TXMSG</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/manageradmin.html" target="_self">TM guide</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/debug.html" target="_self">When troubles</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/test.html" target="_self">Test report</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/developer.html" target="_self">Developers</a></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><a href="/en-us/docs/fqa.html" target="_self">FQA</a></li></ul></li></ul></div><div class="doc-content markdown-body"><h1>TX-LCN 5.0.0 性能测试报告</h1>
<h2>方式说明</h2>
<p>Dubbo下测试:
D1. 在Dubbo下测试单LCN模块在并发20情况下循环请求的吞吐能力。<br>
D2. 在Dubbo下测试单TXC模块在并发20情况下循环请求的吞吐能力。<br>
D3. 在Dubbo下测试单TCC模块在并发20情况下循环请求的吞吐能力。<br>
D4. 在Dubbo下测试TCC、TXC、LCN混合模块下在并发20情况下循环请求的吞吐能力。<br>
D5. 在Dubbo下测试本地事务在并发20情况下循环请求的吞吐能力。</p>
<p>SpringCloud下测试:
S1. 在SpringCloud下测试单LCN模块在并发20情况下循环请求的吞吐能力。<br>
S2. 在SpringCloud下测试单TXC模块在并发20情况下循环请求的吞吐能力。<br>
S3. 在SpringCloud下测试单TCC模块在并发20情况下循环请求的吞吐能力。<br>
S4. 在SpringCloud下测试TCC、TXC、LCN混合模块下在并发20情况下循环请求的吞吐能力。<br>
S5. 在SpringCloud下测试本地事务在并发20情况下循环请求的吞吐能力。</p>
<h2>测试环境</h2>
<p>硬件环境:
CPU: Intel(R) Core(TM) I5-8400 CPU @ 2.80GHz 2.81GHz<br>
内存: 16G<br>
硬盘：240G SSD</p>
<p>软件环境:<br>
系统:win10 64<br>
JAVA: 1.8.0_181<br>
Mysql: 5.7.23<br>
Consul: 1.2.3<br>
Zookeeper:3.4.9<br>
Dubbo:2.6.2<br>
SpringCloud:Finchley.SR2</p>
<h2>测试模块</h2>
<p>Client D E 三个模块,Client调用一次D模块在调用一次E模块。</p>
<p>Client.sayHello() -&gt; D.rpc();<br>
Client.sayHello() -&gt; E.rpc();</p>
<h3>重要配置信息</h3>
<p>采用jmeter做的压测</p>
<p>线程配置<br>
<img src=".../../img/jmeter.png" alt=""><br>
结果取值<br>
<img src="../../img/jmeter-res.png" alt=""></p>
<p>jvm  -Xms256m -Xmx512m<br>
连接池大小 均20<br>
分布式事务框架未启用logger记录</p>
<h2>测试结果</h2>
<p><img src="../../img/res.png" alt=""></p>
<h2>测试报告</h2>
<p><a href="../../img/5.0.0.zip">Jmeter报告</a></p>
<h2>测试说明</h2>
<p>在相同条件下各种事务模式的效率关系</p>
<p>TCC &gt; LCN &gt; TXC</p>
<p>相比本地事务各模式的下降率</p>
<table>
<thead>
<tr>
<th>框架</th>
<th style="text-align:center">模式</th>
<th style="text-align:center">下降率</th>
</tr>
</thead>
<tbody>
<tr>
<td>Dubbo</td>
<td style="text-align:center">LCN</td>
<td style="text-align:center">31.3%</td>
</tr>
<tr>
<td>Dubbo</td>
<td style="text-align:center">TXC</td>
<td style="text-align:center">36.1%</td>
</tr>
<tr>
<td>Dubbo</td>
<td style="text-align:center">TCC</td>
<td style="text-align:center">28.6%</td>
</tr>
<tr>
<td>SpringCloud</td>
<td style="text-align:center">LCN</td>
<td style="text-align:center">21.5%</td>
</tr>
<tr>
<td>SpringCloud</td>
<td style="text-align:center">TXC</td>
<td style="text-align:center">27.1%</td>
</tr>
<tr>
<td>SpringCloud</td>
<td style="text-align:center">TCC</td>
<td style="text-align:center">21.5%</td>
</tr>
</tbody>
</table>
<ul>
<li>下降率<br>
是指在相同的RPC框架下各种事务模式相同条件下的吞吐量相比本地事务吞吐量的下降比例。</li>
</ul>
<p>例如：1 - dubbo下LCN模式的吞吐量/dubbo下本地事务的吞吐量</p>
</div></section><footer class="footer-container"><div class="footer-body"><img src="/img/txlcn.png"/><div class="cols-container"><div class="col col-12"><h3>Vision</h3><p>We will devote ourselves to creating a fast, efficient and concurrent distributed transaction solution.</p></div><div class="col col-6"><dl><dt>Navigation</dt><dd><a href="/zh-cn/docs/txlcn-arch.html" target="_self">TX-LCN Solution</a></dd><dd><a href="/zh-cn/docs/start.html" target="_self">Get Started</a></dd><dd><a href="/zh-cn/docs/txlcn-mod.html" target="_self">Develop Plan</a></dd><dd><a href="https://bbs.txlcn.org/viewforum.php?id=8" target="_self">Report Bug</a></dd></dl></div><div class="col col-6"><dl><dt>Friendship Link</dt><dd><a href="https://www.codingapi.com/" target="_blank">CodingApi</a></dd></dl></div></div><div class="copyright"><span>Copyright © 2018 CodingApi</span></div></div></footer></div></div>
	<script src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
	<script src="https://f.alicdn.com/react/15.4.1/react-dom.min.js"></script>
	<script>
		window.rootPath = '';
  </script>
	<script src="/build/documentation.js"></script>
</body>
</html>